﻿using System;
using System.Collections.Generic;
using System.ServiceModel.Activation;
using HotelierChannelManagement.Model;
using HotelierChannelManagement.Model.Entities;

namespace HotelierChannelManagementService
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class ManagementChannelService : IManagementChannelService
    {
        public List<Hotel> GetHotels()
        {
            return new HotelRepository().GetHotels();
        }

        public OperationStatus SaveHotel(Hotel hotel)
        {
            return new HotelRepository().SaveHotel(hotel);
        }

        public Hotel GetHotel(Guid hotelID)
        {
            return new HotelRepository().GetHotel(hotelID);
        }
    }
}
